package com.easy.mapper;

import com.easy.bean.Itinerary;
import com.easy.bean.Itinerary_detail;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ItineraryDao {
    int add(@Param("param") Itinerary itinerary);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Itinerary itinerary);
    Itinerary one(@Param("id") Integer id);
    List<Itinerary> all(@Param("param") Itinerary itinerary);
    int pageCount(@Param("param") Itinerary itinerary);
    List<Itinerary> page(@Param("page") Page page, @Param("param") Itinerary itinerary);
    int pageCountWithDetails(@Param("param") Itinerary itinerary);
List<Itinerary> pageWithDetails(@Param("page") Page page, @Param("param") Itinerary itinerary);
List<Itinerary_detail> getDetails(@Param("id") Integer id);
}
